package com.easylinkin.linkappapi.alarm.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.easylinkin.linkappapi.alarm.entity.AlarmPersonContact;
import java.util.List;


public interface AlarmPersonContactService extends IService<AlarmPersonContact> {
    /**
     * 获得告警联系人的列表信息
     * @param page
     * @param customQueryParams
     * @return
     */
    IPage<AlarmPersonContact> getAlarmPersonContacts(Page page, AlarmPersonContact customQueryParams);


    List<AlarmPersonContact> getAlarmPersonContacts(AlarmPersonContact alarmPersonContact);

    /**
     * 根据id删除告警联系人
     * @param id
     * @return
     */
    boolean deleteAlarmPersonContactById(String id);

    /**
     * 新增告警联系人
     * @param alarmPersonContact
     * @return
     */
    boolean addAlarmPersonContact(AlarmPersonContact alarmPersonContact);

    /**
     * 更新告警联系人
     * @param alarmPersonContact
     * @return
     */
    boolean updateAlarmPersonContact(AlarmPersonContact alarmPersonContact);

}
